package pub.developers.forum.api.response.follow;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class commentFollowResponse
{
    private Long id ; //评论id

    private Date createAt ; //评论发表日期

    private Long postsId ; //评论的帖子的id

    private String content ; //评论的内容

    private Long followCount ; //评论点赞的次数

    private commentFollowResponse.follower follower;

    public void setFollower(follower followerObject) {
        this.follower = followerObject;
    }

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class follower {
        private Long id ; //给评论点赞的人的id

        private String nickname ; //给评论点赞人的昵称

        private String avatar ; //给评论点赞人的头像
    }
}
